package com.gr.dmbackend.controller.sysadmin;

import com.alibaba.fastjson.JSONObject;
import com.gr.dmbackend.service.sysadmin.SearchBuildingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class SearchBuildingController {

    @Autowired
    private SearchBuildingService searchBuildingService;

    @GetMapping("/api/sysadmin/search-building")
    public JSONObject searchBuilding(@RequestParam String searchContent, @RequestParam int page) {
        return searchBuildingService.searchBuilding(searchContent, page);
    }

}
